##
## Makefile for makefile de test in /home/chreti_m//projet/RAYTRACER/init_cnf_file
## 
## Made by max chretien
## Login   <chreti_m@epitech.net>
## 
## Started on  Wed Apr  4 14:12:46 2012 max chretien
## Last update Mon Apr 30 21:32:02 2012 canh-kiet le
##

NAME	= 	conf

SRC	= 	check_filename.c	\
	  	main_test.c		\
	  	init_check.c		\
	  	init_cnf.c		\
	  	fill_struct.c		\
		check_params.c		\
	  	det_info.c		\
		disp_err.c		\
		fill_lgt_fcts1.c	\
		fill_eye_fcts1.c	\
		fill_obj_fcts1.c	\
		fill_obj_fcts2.c	\

OBJ	= 	$(SRC:.c=.o)

LDFLAGS	= 	-L my_lib/ -lmy

CFLAGS	+= 	-W -Wall
CFLAGS	+= 	-I./include
CFLAGS	+= 	-g

all	:	lib $(NAME)

lib	:
		cd ./my_lib/ && make

$(NAME)	:	$(OBJ)
		$(CC) -o $(NAME) $(OBJ) $(LDFLAGS)

clean	:
		$(RM) $(OBJ)
		cd ./my_lib/ && make clean

fclean	:	clean
		$(RM) $(NAME)
		cd ./my_lib/ && make fclean

re	: 	fclean all